package DirectsDB;
import java.util.HashSet;

import java.util.Set;
/**
* Description : the class for the table in DB: DIRECTSDB
* <p>
*
*@author Danielle
*/
public class DirDB implements java.io.Serializable {
	
	private static final long serialVersionUID = 1L;
    private long dirId=1;
    private String dirName=null;
	
    /**
	* Description Ctor
	*/
    public DirDB() {
    }
    
    /**
	* Description Ctor
	* @param String dirName
	*/
    public DirDB(String dirName) {
        this.dirName = dirName;
    }
    
    /**
	* Description getDirId
	* @return long
	*/
    public long getDirId() {
        return this.dirId;
    }
    
    /**
	* Description setDirId
	* @param long dirId
	*/
    public void setDirId(long dirId) {
        this.dirId = dirId;
    }
    
    /**
	* Description getDirName
	* @throws String
	*/
    public String getDirName() {
        return this.dirName;
    }
    
    /**
	* Description setDirName
	* @param String dirName
	*/
    public void setDirName(String dirName) {
        this.dirName = dirName;
    }
    
    /**
	* Description hashCode
	* @return int
	*/
    public int hashCode() {
        int hash = 0;
        hash += (dirName != null ? dirName.hashCode() : 0);
        return hash;
	}
	
    /**
	* Description equals
	* @param Object object
	* @return boolean
	*/
	@Override
	public boolean equals(Object object) {
	    // TODO: Warning - this method won't work in the case the id fields are not set
		if (this == object)
			return true;
		if (object == null)
			return false;
		if (getClass() != object.getClass())
			return false;
		DirDB other = (DirDB) object;
		if (dirName == null) {
			if (other.dirName != null)
				return false;
		} 
		else if (!dirName.equals(other.dirName))
			return false;
		return true;
	}
	
}
